<?php
require('../functions.php');
require('../header.php');
/*require('agency_lib/cal_logic.php');
require('agency_lib/test_cal_logic.php');
*/

require('agency_lib/test_cal.php');

//echo $url;
/*
print "<pre>";
	print_r($_SESSION);
print "</pre>";*/


//echo $_SERVER['PHP_SELF'];
?>

	<div id="type_head">
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
			<ul class="left">
			     <li><a href="?action=prev&amp;fm=<?php echo urlencode($start_date->format('m/d/Y')); ?>">Previous Week</a></li>
			     <li><a href="?action=next&amp;fm=<?php echo urlencode($start_date->format('m/d/Y')); ?>">Next Week</a></li>
			</ul>
		</form>
		
		<!--<span>Adding Job</span> -->
		<ul>
			<li>manage calendar</li>
			<li>|</li>
			<li>print job</li>
		</ul>
	</div>

	<div id="main_cal_container">

		<div id="qk_add_container">
			<div>
				<form class="qk_add_evnt" action="agency_lib/qk_evnt_process.php" method="POST">

					<label>Model Name</label><input type="text" name="qk_mn" id="some_name" />
						
					<br />
						
					<label>Assignment</label> 
						<select name="qk_assignmnt">
							<option>Type</option>
							<option>Job</option>
							<option>GoSee</option>
							<option>Casting</option>
							<option>Option</option>
							<option>Reminder</option>
							<option>Unavailable</option>
							<option>Runway</option>
							<option>Test</option>
							<option>Appointment</option>
							<option>Fitting</option>
						</select>

					<br />

					<label>Date</label> <input type="text" name="qk_date" id="datepicker" />

					<br />

					<label>Location</label> <input type="text" name="qk_loc" id="some_name" />

					<br />

					<input type="submit" name="qk_submit" value="Submit" id="some_name" />

				</form>
			</div>
		</div> <!-- end qk add container -->

		<div class="cal_navigation">
			<ul>
				<li>Day</li>
				<li>Next 3 Days</li>
				<?php if(in_array("wschedule.php", $url_split)) : ?>
				<li class="selected_tab">Week</li>
				<?php else: ?>
				<li>Week</li>
				<?php endif; ?>
				<li>Timetable</li>
			</ul>	
		</div> <!-- end cal navigation -->
		
		<div id="week_container">
			<div class="cal_search_container">
				
				<div class="cal_search">
					
					<div class="select_cal_search_options">
						<form>
							<select>
								<option>Choose Board</option>
							</select>
						
							<select>
								<option>Choose Talent</option>
							</select>
						
							<select>
								<option>Optional Questions</option>
							</select>
						</form>
					</div> <!-- end select search options -->
					
					<div class="select_date_cal_search_options">
						<div class="select_date_arrow_prev">
						</div>
						
						<div class="select_wdates_cal_search">
							
							<div class="week_search_wrap">
								<div class="week_from">
									<form>
										<select>
											<option>Month</option>
											<?php foreach($months as $month) : ?>
											<option><?php echo $month; ?></option> 
											<?php endforeach; ?>
										</select>
										
										<select>
											<option>Day</option>
											<?php for($x = 1; $x < 32; $x++) : ?>
											<option><?php echo $x; ?></option>
											<?php endfor;?>
										</select>
									
										<select>
											<option>Year</option>
											<option>2011</option>
											<option>2012</option>
											<option>2013</option>
											<option>2014</option>
											<option>2015</option>
										</select>
									</form>
								</div> <!-- end week from -->
								
								<p>-</p>
								
								<div class="week_to">
									<form>
										<select>
											<option>Month</option>
											<?php foreach($months as $month) : ?>
											<option><?php echo $month; ?></option> 
											<?php endforeach; ?>
										</select>
									
										<select>
											<option>Day</option>
											<?php for($x = 1; $x < 32; $x++) : ?>
											<option><?php echo $x; ?></option>
											<?php endfor;?>
										</select>
									
										<select>
											<option>Year</option>
											<option>2011</option>
											<option>2012</option>
											<option>2013</option>
											<option>2014</option>
											<option>2015</option>
										</select>
									</form>
								</div> <!-- end week to -->
							</div> <!-- end week_wrap -->
							
							<div class="select_date_arrow_next">
							</div>
							
							<form class="submit_search">
								<input type="submit" value="Search" />
							</form>	
						</div> <!-- end select wdates cal search -->
					</div> <!-- end select date cal search options -->
				</div> <!-- cal search -->
				
				<div class="event_type_options">
					<ul>
						<li style="padding: 3px 15px 0 0;"><input type="radio" name="event" value="All Events" checked />&nbsp;All Events</li>
						<li><input type="radio" name="event" value="Event Type" />&nbsp;
							<select>
								<option>Choose Event Type</option>
								<option>Private Events</option>
								<?php foreach($type as $types) : ?>
								<option><?php echo $types; ?></option>
								<?php endforeach; ?>
							</select>
						</li>
					</ul>	
					
					<p>Show:</p>	
				</div> <!-- end event type options -->
				
				<div class="inner_cal_container">
					<div class="inner_cal_event_info_container">
						<div class="inner_cal_event_info">
							<p class="week_of">
								Week Of <?php echo date('F d, Y'); ?>&nbsp;<img src="../images/plus.png" width="16" height="16" />
							</p>
							
							<form class="events_for" action="agency_lib/wk_ns_process.php" method="POST">
								Showing Events For <input class="editable" maxlength="32" name="wk_ns" value="All" />
							</form>
						</div> <!-- end inner cal event info -->
					</div> <!-- end inner cal event info container -->
					
		<div class="main_cal_event_content">
				
			<div id="wk_day_container">
				
				<?php 
				//first iterate through the workweek array
				//for($w = 0; $w < sizeof($workweek); $w++) : 
				foreach($workweek as $wrkwk) :
				?>

					<div class="wkday_content">
						<div class="day_head <?php print strtolower($wrkwk['class']); ?>_head"><?php print $wrkwk['label']; ?> <div class="right"><a href="<?php echo $base_url;?>agency_calendar/option/details.php"><img src="../images/plus.png" width="16" height="16" alt="add event" /></a>
							</div>
						</div> <!-- end day_head -->
						
						<div class="day_content <?php print strtolower($wrkwk['class']); ?>_wk">
							<div style="height: 195px; overflow: auto; padding: 5px; text-align: left;">
								
								<?php 
								$opNum = (int) 0;
								if(array_key_exists('evnt', $wrkwk) && count($wrkwk)) : ?>
									
									<div class="evnt_wrap">
										<div class='ww'>
										<div>
										<?php foreach($wrkwk['evnt'] as $ev) : ?>
											
											<?php if(strtolower($ev['type']) == "appointment") : ?>
												
												<div class="assignment_type">	
													<div class="assignmt_img">
														<img src="../images/appointment.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>

													<div class="wrkwk_wrap">
														<div class="wrkwk">
															<p id="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>

														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>
													</div> <!-- div to wrap wrkwk -->
												</div> <!-- end assignment_type -->
											
											<?php elseif(strtolower($ev['type']) == "option") : ?>
												
												<?php ++$opNum; ?>

												<?php if($opNum >= 1) : ?>
													
													<div class="assignment_type">
														<div class="assignmt_img">
															<img src="../images/option.png" width="18" height="17" alt="event icon" /><sup><?php echo $opNum; ?></sup>
														</div>
														
														<div class="wrkwk_wrap">
															
															<div class="wrkwk">
																
																<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
															</div>
															
															<div class="edit_evnt_container">
																<div class="edit_evnt"></div>
																<div class="delete_evnt"></div>
															</div>
															
														</div><!-- div to wrap wrkwk -->
													</div> <!-- end assignment_type -->
													<!-- end event type for more than 1 option -->

												<?php else : ?>

													<div class="assignment_type">
														<div class="assignmt_img">
															<img src="../images/option.png" width="18" height="17" alt="event icon" />&nbsp;
														</div>

														<div class="wrkwk_wrap">

															<div class="wrkwk">
							
																<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
															</div>
														
															<div class="edit_evnt_container">
																<div class="edit_evnt"></div>
																<div class="delete_evnt"></div>
															</div>

														</div> <!-- div to wrap wrkwk -->
													</div> <!-- end assignment_type -->

												<?php endif; ?>
												
											<?php elseif(strtolower($ev['type']) == "casting") : ?>

												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/casting.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
													
													<div class="wrkwk_wrap">
														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>

														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div><!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->

											<?php elseif(strtolower($ev['type']) == "test") : ?>
												
												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/test.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
													
													<div class="wrkwk_wrap">

														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														
															<div class="edit_evnt_container">
																<div class="edit_evnt"></div>
																<div class="delete_evnt"></div>
															</div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->
													

											<?php elseif(strtolower($ev['type']) == "reminder") : ?>
									
												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/reminder.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
													
													<div class="wrkwk_wrap">
														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													
															<div class="edit_evnt_container">
																<div class="edit_evnt"></div>
																<div class="delete_evnt"></div>
															</div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->
													
											<?php elseif(strtolower($ev['type']) == "runway") : ?>
												
												<div class="assignment_type">

													<div class="assignmt_img">
														<img src="../images/runway.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
													
													<div class="wrkwk_wrap">

														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>

														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->
													

											<?php elseif(strtolower($ev['type']) == "unavailable") : ?>
													
												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/unavailble.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>

													<div class="wrkwk_wrap">
														<div class="wrkwk">
															
															<p data-type="<?php print $ev['type']; ?>"><?php if($today->format("Y-m-d") == $ev['date']) : ?>
																
																<?php print $ev['name']; ?> is <b><?php print $ev['type']; ?></b> today.
															<?php else : ?>
																<?php print $ev['name']; ?> is <b><?php print $ev['type']; ?></b> on this date.
																
															<?php endif; ?>	</p>

														</div>
														
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->
													
											<?php elseif(strtolower($ev['type']) == "job") : ?>

												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/job.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
							
													<div class="wrkwk_wrap">
														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>
														
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->
													

											<?php elseif(strtolower($ev['type']) == "gosee") : ?>
												
												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/gosee.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
													
													<div class="wrkwk_wrap">
														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->													

											<?php elseif(strtolower($ev['type']) == "fitting") : ?>
												
												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/fitting.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>
													
													<div class="wrkwk_wrap">
														<div class="wrkwk">
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div> <!-- end wrkwk wrap -->
												</div> <!-- end assignment_type -->
														
											<?php endif; ?>

										<?php endforeach; ?>
										</div> <!-- anon div containing ww content -->
										</div> <!-- ww -->
									</div> <!-- evnt wrap -->

								<?php else : ?>

									<p>there are no events for this day, <a id="add_event" href="#">add one</a></p>

								<?php endif; ?>

							</div> <!-- div container with inline style -->
						</div> <!-- end day content -->
					</div> <!-- end wkday_content -->

					<?php endforeach; ?>
						
					<div id="weekend_container">
						
						<?php foreach($weekend as $wknd) : ?>
						
						<div class="wkend_content <?php print strtolower($wknd['class']); ?>_wk">
							
							<div class="day_head <?php print strtolower($wknd['class']); ?>_head"><?php print $wknd['label']; ?><div class="right"><a href="<?php echo $base_url;?>agency_calendar/job/history.php"><img src="../images/plus.png" width="16" height="16" alt="add new event" /></a></div>
							</div> <!-- end day head -->
						
							<!--<div class="wknd_cntnt">-->
							<div class="wknd_cntnt <?php print strtolower($wknd['class']); ?>_wk">
							<div style="height: 80px; overflow: auto; padding: 5px; text-align: left;">
								
								<?php if(array_key_exists('evnt', $wknd) && count($wknd)) : ?>
									
								<div class="evnt_wrap">

									<div class='we'>
									<div>

									<?php 
									$opNum = 0;
									foreach($wknd['evnt'] as $ev) : ?>
										
										<?php if(strtolower($ev['type']) == "appointment") : ?>

											<div class="assignment_type">
												
												<div class="assignmt_img">
													<img src="../images/appointment.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>

												<div class="wknd_wrap">
													<div class="wknd">
														<p id="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													</div>

													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div> <!-- div to wrap wknd -->
											</div> <!-- end assignment_type -->
										
										<?php elseif(strtolower($ev['type']) == "option") : ?>
												<?php ++$opNum; 

												if($opNum >= 1) : ?>

												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/option.png" width="18" height="17" alt="event icon" /><sup><?php echo $opNum; ?></sup>
													</div>
													
													<div class="wknd_wrap">
														
														<div class="wknd">
															
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>
														
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>
														
													</div><!-- div to wrap wknd -->
												</div> <!-- end assignment_type -->
												<!-- end event type for more than 1 option -->

												<?php else : ?>
												
												<div class="assignment_type">
													<div class="assignmt_img">
														<img src="../images/option.png" width="18" height="17" alt="event icon" />&nbsp;
													</div>

													<div class="wknd_wrap">

														<div class="wknd">
						
															<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
														</div>
													
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>

													</div> <!-- div to wrap wknd -->
												</div> <!-- end assignment_type -->

											<?php endif; ?>
											
										<?php elseif(strtolower($ev['type']) == "casting") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/casting.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
												
												<div class="wknd_wrap">
													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													</div>

													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div><!-- end wknd wrap -->
											</div> <!-- end assignment_type -->
										
										<?php elseif(strtolower($ev['type']) == "test") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/test.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
												
												<div class="wknd_wrap">

													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->
										
										<?php elseif(strtolower($ev['type']) == "reminder") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/reminder.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
												
												<div class="wknd_wrap">
													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
												
														<div class="edit_evnt_container">
															<div class="edit_evnt"></div>
															<div class="delete_evnt"></div>
														</div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->
										
										<?php elseif(strtolower($ev['type']) == "runway") : ?>

											<div class="assignment_type">

												<div class="assignmt_img">
													<img src="../images/runway.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
												
												<div class="wknd_wrap">

													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													</div>

													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->

										<?php elseif(strtolower($ev['type']) == "unavailable") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/unavailble.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>

												<div class="wknd_wrap">
													<div class="wknd">
														
														<p data-type="<?php print $ev['type']; ?>"><?php if($today->format("Y-m-d") == $ev['date']) : ?>
															
															<?php print $ev['name']; ?> is <b><?php print $ev['type']; ?></b> today.
														<?php else : ?>
															<?php print $ev['name']; ?> is <b><?php print $ev['type']; ?></b> on this date.
															
														<?php endif; ?>	</p>

													</div>
													
													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->
										
										<?php elseif(strtolower($ev['type']) == "job") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/job.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
						
												<div class="wknd_wrap">
													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													</div>
													
													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->
										
										<?php elseif(strtolower($ev['type']) == "gosee") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/gosee.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
												
												<div class="wknd_wrap">
													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													</div>
													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->	
										
										<?php elseif(strtolower($ev['type']) == "fitting") : ?>

											<div class="assignment_type">
												<div class="assignmt_img">
													<img src="../images/fitting.png" width="18" height="17" alt="event icon" />&nbsp;
												</div>
												
												<div class="wknd_wrap">
													<div class="wknd">
														<p data-type="<?php print $ev['type']; ?>"><?php print $ev['type']; ?> for <?php print $ev['name']; ?> in <a href="#"><?php print $ev['location']; ?></a></p>
													</div>
													<div class="edit_evnt_container">
														<div class="edit_evnt"></div>
														<div class="delete_evnt"></div>
													</div>

												</div> <!-- end wknd wrap -->
											</div> <!-- end assignment_type -->
											
										<?php endif; ?>

									<?php endforeach; ?>

									</div> <!-- anon div containing ww content -->
									</div> <!-- we -->
								</div> <!-- evnt wrap -->

								<?php else : ?>

								<p>there are no events for this day, <a href="#">add one</a></p>

								<?php endif; ?>

							</div> <!-- anon div containing styling -->
							</div> <!-- end wknd_cntnt -->
						</div> <!-- end wkend_content -->
					<?php endforeach; ?>	
					</div> <!-- end weekend container -->
				</div> <!-- end week -->
						

					</div><!-- main cal -->
				</div> <!-- end inner cal container -->
				
				<div class="quick_add_event_container">
					<div class="quick_add_event_head">
						<p><b>Quick Add</b> (Add a Task)</p>
						<p class="public_private_event">
							<input type="radio" name="event_privacy" value="Private" checked /> Private
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="radio" name="event_privacy" value="Public" /> Public
						</p>
						
						<p class="inc_more_details"><a href="#">Include More Details</a></p>
					</div> <!-- end quick add event head -->
					
					<div class="quick_add_event_content">
						<div class="q_event_content">
							<form class="qa_frm">
								<ul>
									<li><label>Task Name</label> <br /> <input type="text" name="" maxlength="40" /></li>
									
									<li><label>Date</label> <br /> <input type="text" id="qa_dp" name="qa_date" /></li>


									<li><label>Time</label>
									<br />
									<select>
										<option>Time</option>
									</select>
									<select>
										<option>AM</option>
										<option>PM</option>
									</select></li>
								
									<li><label>Set Priority</label>
									<br />
									<select>
										<option class="priority_low">Low</option>
										<option class="priority_medium">Medium</option>
										<option class="priority_high">High</option>
									</select></li>
								
							
									<li><input class="quick_add" type="submit" name="add" value="Add" /></li>
								</ul>
							</form>
						</div> <!-- end q event content -->	
					</div> <!-- end quick add event content -->
				</div> <!-- end quick add container -->
				
				<div class="event_cal_foot_options">
					<ul>
						<li><input type="checkbox" name="" value="tasks" /> Tasks</li>
						<li><input type="checkbox" name="" value="calnav" /> Calendar Navigation</li>
					</ul>
					
					<p>Show:</p>
				</div>
				
			</div> <!-- cal search container -->
		</div> <!-- end week container -->
	</div> <!-- end main cal container -->
			
<?php include('../footer.php'); ?>